package com.zhongwang.mms.module.material.dao;

import com.zhongwang.mms.gen.entity.MCheckDetail;
import com.zhongwang.mms.gen.entity.MCheckDetailExample;
import com.zhongwang.mms.module.material.model.MCheckDetailModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MCheckDetailDao {
    long countByExample(MCheckDetailExample example);

    int deleteByExample(MCheckDetailExample example);

    int deleteByPrimaryKey(Integer cdlId);

    int insert(MCheckDetail record);

    int insertSelective(MCheckDetail record);

    List<MCheckDetail> selectByExample(MCheckDetailExample example);

    MCheckDetail selectByPrimaryKey(Integer cdlId);

    int updateByExampleSelective(@Param("record") MCheckDetail record, @Param("example") MCheckDetailExample example);

    int updateByExample(@Param("record") MCheckDetail record, @Param("example") MCheckDetailExample example);

    int updateByPrimaryKeySelective(MCheckDetail record);

    int updateByPrimaryKey(MCheckDetail record);

    /*--myself--*/

    /**
     * 盘点明细查询
     *
     * @param checkDetailModel 查询条件
     * @return
     */
    List<MCheckDetailModel> findPlanDetailByQuery(MCheckDetailModel checkDetailModel);

    /**
     * 获取待盘点明细
     *
     * @param checkDetailModel 查询条件
     * @return
     */
    List<MCheckDetailModel> findInventoryListByQuery(MCheckDetailModel checkDetailModel);
}